/* polls/static/polls/style.css */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f7fa;
    color: #333;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4efe9 100%);
    /* background-color: rgba(255, 255, 255, 0.937); */
    width: 50%;
    max-width: 1000px;
    margin: 20px auto;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}
/* .container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
} */

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
}

ul {
    list-style-type: none;
    padding: 0;
}

/* 渐变色列表项 */
li {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(240,248,255,0.9) 100%);
    margin: 10px 0;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

li:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

li a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    display: block;
    position: relative;
    z-index: 1;
}

li a:hover {
    color: #2980b9;
    text-decoration: none;
}

form {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

fieldset {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
}

legend {
    padding: 0 10px;
    font-weight: bold;
    color: #2c3e50;
}

input[type="radio"] {
    margin-right: 10px;
}

input[type="submit"] {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

input[type="submit"]:hover {
    background-color: #2980b9;
}

.error-message {
    color: #e74c3c;
    font-weight: bold;
}

.vote-link {
    display: inline-block;
    margin: 10px 5px;
    padding: 10px 15px;
    background-color: #2ecc71;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.vote-link:hover {
    background-color: #27ae60;
}

.admin-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 15px;
    background-color: #9b59b6;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.admin-link:hover {
    background-color: #8e44ad;
}

.choice {
    margin: 10px 0;
    padding: 10px;
    background: rgba(240, 248, 255, 0.7);
    border-radius: 5px;
    transition: background-color 0.3s;
}

.choice:hover {
    background: rgba(240, 248, 255, 0.9);
}

/* 结果页特定样式 */
.results-list {
    margin-bottom: 30px;
}

.results-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.vote-bar-container {
    width: 60%;
    background-color: #ecf0f1;
    border-radius: 5px;
    overflow: hidden;
    margin-left: 15px;
}

.vote-bar {
    height: 20px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.vote-percentage {
    font-weight: bold;
    color: #2c3e50;
    min-width: 50px;
    text-align: right;
}

.total-votes {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(52, 152, 219, 0.1));
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    color: #2c3e50;
}

.total-votes span {
    color: #e74c3c;
    font-size: 1.2em;
}

/* 总票数显示 */
.total-votes-display {
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
}

.total-number {
    font-weight: bold;
    color: #2ecc71;
}

/* 投票结果列表 */
.results-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.results-list li {
    margin-bottom: 15px;
}

.choice-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.choice-color {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 10px;
}

.choice-text {
    font-weight: bold;
}

.choice-votes {
    color: #7f8c8d;
}

/* 投票进度条 */
.vote-bar-container {
    width: 100%;
    height: 10px;
    background-color: #ecf0f1;
    border-radius: 5px;
    overflow: hidden;
}

.vote-bar {
    height: 100%;
    background-color: #2ecc71;
    border-radius: 5px;
    transition: width 0.5s ease;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    justify-content: space-between;
}

.vote-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2ecc71;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s;
}

.vote-link:hover {
    background-color: #27ae60;
}

/* 底部样式 - 固定在底部并居中 */
footer {
    background-color: #2c3e50; /* 与图片中的深色背景一致 */
    color: white;
    text-align: center;
    padding: 15px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.copyright {
    font-size: 14px;
    margin-bottom: 8px;
    color: #ecf0f1;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #3498db; /* 与图片中的蓝色字体一致 */
}

/* 确保主要内容不会与底部重叠 */
.container {
    padding-bottom: 80px; /* 为底部留出空间 */
}